<?php
/* Description: This file is used to add sub sub category. */
#########IncludeFiles####################################################################################
include_once '../inc/config.php';
include_once("../inc/bootstrape.php");
require_once _SITE_PATH_.'classes/Vendor/Vendor.php';
require_once _SITE_PATH_.'classes/Master/Master.php';
require_once _SITE_PATH_.'classes/CommonUtility/CommonUtility.php';

if( $_POST['submit']=='Submit'){   
	$parms['country_id'] = $_POST['country_id'];
	$parms['name'] = $_POST['name'];
	    
    if( CommonUtility::insertData($parms, 'state_master')) {        
        header("Location: state_mng.php?msg=1414");            
        exit;
    }
    $err = 1415;    
}

$dropdown_countries = array();
$dropdown_countries = CommonUtility::getCountry();

$errMsg = $err;
$_tplName = 'master/state_add.tpl';
$_title = 'Add State';

require_once _ADMIN_TPL_MAIN_;
?>